<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<%@ page import="com.scalar.chiptrack.utils.ConfigManager,
				 java.util.ArrayList" %>
<%@ page import="com.scalar.chiptrack.users.Functionality"%>
<%@ page import="com.scalar.chiptrack.users.User"%>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>

<chiptrack:checkLogon sourcePage="/tapeReelRequest.do"/>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext(); %>

<HTML>
<HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type="text/css" rel="stylesheet">
<script src="<%=chipTracContext%>/jsp/includes/scripts/functions.js"></script>
<script src="<%=chipTracContext%>/jsp/includes/scripts/validations.js"></script>

<script language="javascript">
function newRequest()
{
    var errors = "";

    if( document.tapeReelRequestForm['tapeReelRequest.trProcessStepId'].value == -1 )
    {
        errors = "<li>Select Tape & Reel Part Number";
    }
    if( document.tapeReelRequestForm['tapeReelRequest.trlocationId'].value == -1 )
    {
        errors = errors + "<li>Select Tape & Reel Vendor";
    }

    if( errors != "" )
    {
        var pa = document.getElementById("errors");
        pa.innerHTML = errors;
       return false;
    }

   document.tapeReelRequestForm.action = '<%=chipTracContext%>/tapeReelRequest.do?action=create';
   document.tapeReelRequestForm.submit();

}
</script>
</HEAD>
<BODY bgColor=#ffffff leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
<!-- Top Header Start-->
<%@ include file="/jsp/includes/header.jsp" %>
<!-- Top Header End-->
<table cellSpacing=0 cellPadding=0 width="100%" border=0>
    <tr>
	    <td width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>
            <!-- Side Navigation start -->
            <%@ include file="/jsp/operations/releaseMenu.jsp" %>
            <!-- end of the side navigations -->
        <td bgcolor="#ffffff"><IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
        <td bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
        <td valign="top" width="100%">
            <IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>
            <BR>
            <html:form name="tapeReelRequestForm" type="com.scalar.chiptrack.operations.tapereel.forms.TapeReelRequestForm" action="/tapeReelRequest">
            <nested:nest property="tapeReelRequest" >
            <table border="0" width="100%" align=center>
                <tr><td colspan=5 class="NArialW" align="center">New Tape and Reel Request</TD></TR>
                <tr><td colspan=5>&nbsp;</td></tr>
                <tr>
                    <td>
                        <table align="center" border="0" width="80%">
                            <tr>
                                <td width="10%" class="NArialL">&nbsp;</td>
                                <td colspan="4" class="NArialL">
                                    <strong><FONT id="errors" styleClass="NArialL" color='FF0000'></FONT></strong>&nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td width="10%" class="NArialL">&nbsp;</td>
                                <td colspan="4">
                                    <chiptrack:info styleClass="NArialL" />
                                    <chiptrack:errors styleClass="NArialL" />
                                    <chiptrack:messages type="info" styleClass="NArialL" />&nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td width="10%" class="NArialL">&nbsp;</td>
                                <td width="15%" class="NArialL">&nbsp; TR Part Number:</td>
                                <td width="20%" class="NArialL">
                                    <nested:select property="trProcessStepId"  styleClass="txfield"  style="width:170px">
                                        <html:option value="-1">All</html:option>
                                        <html:options collection="partNumbersList" property="value" labelProperty="label"/>
                                    </nested:select>
                                </td>
								<td width="10%">&nbsp;</td>
                                <td width="15%" class="NArialL">&nbsp;&nbsp;&nbsp;Vendor:</td>
                                <td width="30%" class="NArialL">
                                    <nested:select property="trlocationId"  styleClass="txfield"  style="width:170px">
                                        <html:option value="-1">All</html:option>
                                        <html:options collection="vendorsList" property="value" labelProperty="label"/>
                                    </nested:select>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="5"><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20></td>
                            </tr>
                            <tr>
                                <td colspan="5"><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20></td>
                            </tr>
                            <tr>
                                <td colspan="6" align=center>
                                    <input type=image border="0" src="<%=chipTracContext%>/jsp/includes/images/submit.gif" onClick ="javascript:return newRequest();" width="53" height="17" onmouseover="window.status='Click to Save Search Shop Order Data';return true" onmouseout="window.status='';return true" title="Click here to Search Shop Order Data">
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <a href="javascript:document.tapeReelRequestForm.reset();"><img border="0" src="<%=chipTracContext%>/jsp/includes/images/reset.gif" width="53" height="17" onmouseover="window.status='Click to reset search';return true" onmouseout="window.status='';return true" title="Click here to reset search"></a>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="5"><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20></td>
                            </tr>
                        </TABLE>
                    </td>
                </tr>
            </table>
            </nested:nest>
            </html:form>
        </td>
    </tr>
</table>
<!-- Footer starts here -->
<%@ include file="/jsp/includes/footer.jsp" %>
<!-- footer end here -->
</BODY>
</HTML>
